/**
 * Created by zby on 2018/4/1.
 */

import java.io.*;

public class FileAccept implements FilenameFilter {
    private String extandName;

    public void setExtandName(String s) {
        extandName = "." + s;
    }

    public boolean accept(File dir, String name) {
        return name.endsWith(extandName);
    }
}
